home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ddj0897.zip / CCDBMS.ZIP / ORACLE.H < prev    next >
C/C++ Source or Header  |  1997-03-18  |  2KB  |  49 lines

  1. // =================================================================
  2. // Oracle.h
  3. // =================================================================
  4. // Harold Kasperink / John Dekker 
  5. // Dr. Dobb's Journal 1997
  6. // =================================================================
  7. // Oracle PrcC/C++ function headers
  8. // =================================================================
  9. #ifndef _ORACLE_H_
  10. #define _ORACLE_H_
  11.  
  12. ////////////////////////////////////////////////////////////////////
  13. // DB_Connect
  14. ////////////////////////////////////////////////////////////////////
  15. // Connect with database session to oracle 
  16. // with username/password@server in pszUsr
  17. ////////////////////////////////////////////////////////////////////
  18. long DB_Connect(const char *pszUsr);
  19.  
  20. ////////////////////////////////////////////////////////////////////
  21. // DB_Disconnect
  22. ////////////////////////////////////////////////////////////////////
  23. // Disconnect from oracle
  24. ////////////////////////////////////////////////////////////////////
  25. long DB_Disconnect();
  26.  
  27. ////////////////////////////////////////////////////////////////////
  28. // DB_Commit
  29. ////////////////////////////////////////////////////////////////////
  30. // Commit transaction for database session 
  31. ////////////////////////////////////////////////////////////////////
  32. long DB_Commit(void *pCmd);
  33.  
  34. ////////////////////////////////////////////////////////////////////
  35. // DB_Rollback
  36. ////////////////////////////////////////////////////////////////////
  37. // Rollback transaction for database session 
  38. ////////////////////////////////////////////////////////////////////
  39. long DB_Rollback(void *pCmd);
  40.  
  41. ////////////////////////////////////////////////////////////////////
  42. // DB_FindPerson
  43. ////////////////////////////////////////////////////////////////////
  44. // Find a if person exists in the database
  45. ////////////////////////////////////////////////////////////////////
  46. extern long DB_FindPerson(void *pCmd, char *pszFirstName, char *pszLastName);
  47.  
  48. #endif
  49.